﻿namespace Whse.Api.Models.Aggregates.WarehouseAggregate
{
    public record WarehousePosition : ValueObject
    {
        public string Code { get; }

        public string Description { get; }

        private WarehousePosition()
        {
        }

        internal WarehousePosition(string code, string description)
        {
            Code = Guarder.Checker.NotNullOrEmpty(code, nameof(code));
            Description = description is null ? string.Empty : description.Trim();
        }
    }
}
